package com.nefu.softlab.xjwc.service;

import com.nefu.softlab.xjwc.model.Activity;
import com.nefu.softlab.xjwc.model.vo.ActivityVo;
import com.nefu.softlab.xjwc.utils.JSONResult;
import com.nefu.softlab.xjwc.utils.XJWCException;

/**
 * @author LiXiwen
 * @date 2020/2/7 19:04
 */
public interface ActivityService {

    /**
     * 添加一个活动
     * @param activity
     * @return
     * @throws XJWCException
     */
    JSONResult addActivity(ActivityVo activity) throws XJWCException;

    /**
     * 条件查询活动
     * @param activity
     * @return
     * @throws XJWCException
     */
    JSONResult selectAllActivity(Activity activity) throws XJWCException;

    /**
     * 条件更新活动
     * @param activity
     * @return
     * @throws XJWCException
     */
    JSONResult updateActivity(ActivityVo activity) throws XJWCException;

    /**
     * 删除
     * @param activityId
     * @return
     * @throws XJWCException
     */
    JSONResult deleteActivity(Integer activityId) throws XJWCException;


    /**
     * 查询在时间内的活动
     * @return
     * @throws XJWCException
     */
    JSONResult selectInTimeActivity(String userId) throws XJWCException;



    /**
     * 查询活动详细
     * @return
     * @throws XJWCException
     */
    JSONResult selectActivityDetail(Activity activity) throws XJWCException;


    /**
     * 查询所有活动
     * @return
     * @throws XJWCException
     */
    JSONResult getAllActivity() throws XJWCException;




}

